home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
porttool.zip
/
TOUCH.MAN
< prev
next >
Wrap
Text File
|
1992-12-03
|
2KB
|
48 lines
NNAAMMEE
touch - update the access and modification times of a file
SSYYNNOOPPSSIISS
ttoouucchh [ _-_a_m_c_h ] [ _m_m_d_d_h_h_m_m[_y_y] ] _f_i_l_e ...
DDEESSCCRRIIPPTTIIOONN
ttoouucchh sets the access and modification times of each argument to
the current time. A file is created if it does not already exist.
ttoouucchh is valuable when used in conjunction with mmaakkee(1), where, for
instance, you might want to force a module to be rebuilt even
though it has not changed. In such a case, you might type:
touch sumfile.c
make
mmaakkee(1) would then see that sumfile.c was more recent than the
corresponding .obj file, and would cause sumfile.c to be compiled.
OOPPTTIIOONNSS
The date-and-time argument updates the modification time to that
specified, rather than the current time. The first _m_m is the
month, _d_d is the day of the month, _h_h is the hour, and the second
_m_m is the minute. If _y_y is specified, it is the last two digits of
the year. If omitted, the current year is assumed. Little error
checking is performed; you can set very odd dates and times.
--aa Update only the access time.
--cc Do not create _f_i_l_e if it does not exist.
--mm Update only the modification time.
--hh Display a short help message.
Under MS-DOS the access time and modification time are teated as
the same thing; under OS/2 they are different.
BBUUGGSS
It is difficult to touch a file whose name consists entirely of
digits, as ttoouucchh will interpret the first such non-flag argument as
a time. You must ensure that there is a character in the name
which is not a digit, by specifying it as ./_n_a_m_e rather than _n_a_m_e.
CCooppyyrriigghhtt ((cc)) 11999922 FFrraannkk EE.. WWhhaalleeyy AAllll rriigghhttss rreesseerrvveedd